<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
         ul{
            display: flex;
            align-items: center;
            justify-content: space-around;
            /* 浮动 */
            list-style: none;
            padding: 0;
            border: 0;
            border: 1px solid #aaa;
            width: 600px;
            height: 60px;
            background: darkgray;
        }
           ul li{
            text-align: center;  
            /* display:inline-block; */
            width: 50px;
            height: 30px;
            background: white;
            /* margin: 2px 5px; */
        }
    </style>
</head>
<body>
    <ul>
        <li>上一页</li>
        <li>1</li>
        <li>2</li>
        <li>3</li>
        <li>4</li>
        <li>5</li>
        <li>...6</li>
        <li>下一页</li>
    </ul>
</body>
</html>